home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
TSPA3460
/
TSUNTC.INT
< prev
next >
Wrap
Text File
|
1994-08-16
|
2KB
|
58 lines
{$B-,D-,F-,I+,N-,R-,S+,V+}
(*
Timo Salmi UNiT C
A Turbo Pascal unit for playing, and other routines needing Ctr
All rights reserved 26-Jul-89,
Updated 19-Aug-89, 12-Nov-89, 14-Jul-90, 26-Aug-92, 30-May-93
This unit may be used and distributed freely for PRIVATE, NON-COMMERCIAL,
NON-INSTITUTIONAL purposes, provided it is not changed in any way, and
that a proper attribution is made. For ANY other usage, such as use in a
business enterprise or at a university, contact the author for the terms
of registration.
The units are under development. Comments and contacts are solicited. If
you have any questions, please do not hesitate to use electronic mail for
communication.
InterNet address: ts@uwasa.fi
The author shall not be liable to the user for any direct, indirect or
consequential loss arising from the use of, or inability to use, any unit,
program or file howsoever caused. No warranty is given that the units and
programs will work under all circumstances.
Timo Salmi
Professor of Accounting and Business Finance
Faculty of Accounting & Industrial Management; University of Vaasa
P.O. BOX 297, FIN-65101 Vaasa, Finland
*)
unit TSUNTC;
(* ======================================================================= *)
interface
(* ======================================================================= *)
uses Dos, Crt;
(* Play one note
The strings (pardon the pun) to play the notes are:
c,c#,d,d#,e,f,f#,g,g#,a,a#,b
The middle a-flat (440Hz) is in octave 4
*)
procedure PLAYNOTE (note : string; octave : integer; duration : integer);
(* Reverse TextColor and TextBackround, that is toggle the colors *)
procedure REVCOLOR;
(* Enable intensity instead of blink. Facilitates the bright background
colors for TextBackground by giving up the possibility of blinking
in TextColor. See TSUNTC.TST for an example of the usage *)
procedure HIBACK;
(* Enable blink, disable bright background. Note that to use HIBACK and/or
BLBACK you must have an EGA adapter or beyond. *)
procedure BLBACK;